import { service } from "./request.js";

const login = (data) => {
  return service({
    url: "/bizUser/login",
    method: "post",
    data
  });
};
//生成验证码
const captchaImage = (data) => {
  return service({
    url: "/captcha/createLoginCaptcha",
    method: "post",
    data
  });
};

//退出登录
const logout = () => {
  return service({
    url: "/security/logout",
    method: "post"
  });
};

//测试环境登陆取,通过浙路通token获取本项目token
const getTestToken = (params) => {
  return service({
    url: "/zlt/login",
    method: "get",
    params
  });
};
// const testLogin = () => {
//     return service({
//         url: "zlt/teammate/token",
//         method: "get",
//       });
// }

export {
  login,
  captchaImage,
  logout,
  getTestToken
  // testLogin
};
